package org.hbhk.hxl.gateway.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.time.DateFormatUtils;

public class HttpNode implements Serializable {

	private static final long serialVersionUID = 1878396409479801850L;

	private String app;

	private String node;

	private String enable;

	private String createTimeVersion = DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");

	private String gray;

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public String getApp() {
		return app;
	}

	public void setApp(String app) {
		this.app = app;
	}

	@Override
	public boolean equals(Object obj) {
		return toString().equals(obj.toString());
	}

	@Override
	public String toString() {
		return "HttpNode [node=" + node + "]";
	}

	public String getCreateTimeVersion() {
		return createTimeVersion;
	}

	public void setCreateTimeVersion(String createTimeVersion) {
		this.createTimeVersion = createTimeVersion;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getGray() {
		return gray;
	}

	public void setGray(String gray) {
		this.gray = gray;
	}

}
